package Databaus2;
public class Pallet {
	private int pID;
	private String cookieName;
	private boolean blocked;
	private String date, time;
	private int oID;
	private String location = "Unknown";

	public Pallet(int pID, String cookieName, boolean blocked, String date,
			String time, int oID, String location) {
		this.pID = pID;
		this.cookieName = cookieName;
		this.blocked = blocked;
		this.date = date;
		this.time = time;
		this.oID = oID;
		this.location = location;
	}

	public int getPID() {
		return pID;
	}

	public String getCookieName() {
		return cookieName;
	}

	public boolean getBlock() {
		return blocked;
	}

	public String getBakingDate() {
		return date;
	}

	public String getBakingTime() {
		return time;
	}

	public int getOID() {
		return oID;
	}

	public String getLocation() {
		return location;
	}

	public String[] getAll() {
		return new String[] { String.valueOf(pID), String.valueOf(oID),
				cookieName, date, "", "", "", location, blocked ? "X" : "" };
	}
}
